﻿using System;

namespace DTcms.Model
{
    /// <summary>
    /// 会员主表
    /// </summary>
    [Serializable]
    public partial class users
    {
        public users()
        { }
        #region Model
        private int _id;
        private int _group_id = 0;
        private string _user_name = string.Empty;
        private string _salt = string.Empty;
        private string _password = string.Empty;
        private string _mobile = string.Empty;
        private string _email = string.Empty;
        private string _avatar = string.Empty;
        private string _nick_name = string.Empty;
        private string _sex = string.Empty;
        private string _area = string.Empty;
        private string _address = string.Empty;
        private string _qq = string.Empty;
        private decimal _amount = 0M;
        private int _point = 0;
        private int _status = 0;
        private DateTime _reg_time = DateTime.Now;
        private int _is_robots = 0;
        private int _class_id = 0;
        private int _company_id = 0;
        private string _rong_token = string.Empty;

        private int _shiming_status = 0;
        private int _shiming_id = 0;

        private int _province_id = 0;
        private int _city_id = 0;
        private int _district_id = 0;
        private string _user_pwd = string.Empty;

        private int _readcount = 0;
        private DateTime _readtime = DateTime.Now;

        private int _refreshcount = 0;
        private DateTime _refreshtime = DateTime.Now;

        private int _releasecount = 0;
        private DateTime _releasetime = DateTime.Now;
        private string _referralcode = string.Empty;
        private int _readcountTotal = 0;

        private DateTime _upgrade_time = DateTime.Now;

        private int _isadmin;
        /// <summary>
        /// 自增ID
        /// </summary>
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
     
        /// <summary>
        /// 用户组ID
        /// </summary>
        public int group_id
        {
            set { _group_id = value; }
            get { return _group_id; }
        }
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name
        {
            set { _user_name = value; }
            get { return _user_name; }
        }
        /// <summary>
        /// 6位随机字符串,加密用到
        /// </summary>
        public string salt
        {
            set { _salt = value; }
            get { return _salt; }
        }
        /// <summary>
        /// 用户密码
        /// </summary>
        public string password
        {
            set { _password = value; }
            get { return _password; }
        }
        /// <summary>
        /// 手机号码
        /// </summary>
        public string mobile
        {
            set { _mobile = value; }
            get { return _mobile; }
        }
        /// <summary>
        /// 电子邮箱
        /// </summary>
        public string email
        {
            set { _email = value; }
            get { return _email; }
        }
        /// <summary>
        /// 用户头像
        /// </summary>
        public string avatar
        {
            set { _avatar = value; }
            get { return _avatar; }
        }
        /// <summary>
        /// 用户昵称
        /// </summary>
        public string nick_name
        {
            set { _nick_name = value; }
            get { return _nick_name; }
        }
        /// <summary>
        /// 性别
        /// </summary>
        public string sex
        {
            set { _sex = value; }
            get { return _sex; }
        }
    
        /// <summary>
        /// 所属地区逗号分隔
        /// </summary>
        public string area
        {
            set { _area = value; }
            get { return _area; }
        }
        /// <summary>
        /// 详情地址
        /// </summary>
        public string address
        {
            set { _address = value; }
            get { return _address; }
        }
        /// <summary>
        /// QQ号码
        /// </summary>
        public string qq
        {
            set { _qq = value; }
            get { return _qq; }
        }
      
        /// <summary>
        /// 账户余额
        /// </summary>
        public decimal amount
        {
            set { _amount = value; }
            get { return _amount; }
        }
        /// <summary>
        /// 账户积分
        /// </summary>
        public int point
        {
            set { _point = value; }
            get { return _point; }
        }
     
        /// <summary>
        /// 账户状态,0正常,1待验证,2待审核,3锁定
        /// </summary>
        public int status
        {
            set { _status = value; }
            get { return _status; }
        }
        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime reg_time
        {
            set { _reg_time = value; }
            get { return _reg_time; }
        }
        public int is_robots
        {
            get { return _is_robots; }
            set { _is_robots = value; }
        }
        public int class_id
        {
            get { return _class_id; }
            set { _class_id = value; }
        }
        public int company_id
        {
            get { return _company_id; }
            set { _company_id = value; }
        }

        public string rong_token
        {
            get{ return _rong_token;}
            set{ _rong_token = value;}
        }
        public int shiming_status
        {
            get { return _shiming_status; }
            set { _shiming_status = value; }
        }
        public int shiming_id
        {
            get { return _shiming_id; }
            set { _shiming_id = value; }
        }
        public int province_id
        {
            get { return _province_id; }
            set { _province_id = value; }
        }
        public int city_id
        {
            get { return _city_id; }
            set { _city_id = value; }
        }
        public int district_id
        {
            get { return _district_id; }
            set { _district_id = value; }
        }

        public string user_pwd
        {
            get { return _user_pwd; }
            set { _user_pwd = value; }
        }


     /// <summary>
     /// 查看次数
     /// </summary>
        public int readcount
        {
            get { return _readcount; }
            set { _readcount = value; }
        }
        /// <summary>
        /// 上次查看时间
        /// </summary>
        public DateTime readtime
        {
            get { return _readtime; }
            set { _readtime = value; }
        }


        /// <summary>
        /// 刷新次数
        /// </summary>
        public int refreshcount
        {
            get { return _refreshcount; }
            set { _refreshcount = value; }
        }
        /// <summary>
        /// 上次刷新时间
        /// </summary>
        public DateTime refreshtime
        {
            get { return _refreshtime; }
            set { _refreshtime = value; }
        }
        /// <summary>
        /// 信息发布次数
        /// </summary>
        public int releasecount
        {
            get { return _releasecount; }
            set { _releasecount = value; }
        }
        /// <summary>
        /// 上次发布时间
        /// </summary>
        public DateTime releasetime
        {
            get { return _releasetime; }
            set { _releasetime = value; }
        }
        /// <summary>
        /// Demon 添加 推荐码 20190227
        /// </summary>
        public string referralcode
        {
            set { _referralcode = value; }
            get { return _referralcode; }
        }
        /// <summary>
        /// Demon 添加 总委托求购查看次数 20190403
        /// </summary>
        public int readcountTotal
        {
            set { _readcountTotal = value; }
            get { return _readcountTotal; }
        }


        /// <summary>
        /// Demon 添加 会员升级时间 以后根据这个排序 200190426
        /// </summary>
        public DateTime upgrade_time
        {
            set { _upgrade_time = value; }
            get { return _upgrade_time; }
        }

        public int isadmin
        {
            set { _isadmin = value; }
            get { return _isadmin; }
        }
        #endregion
    }
}